package com.kuangsheng.demo03选择结构;

import java.util.Scanner;

public class Demo07 {
    public static void main(String[] args) {
        //单项选择
        Scanner scnner = new Scanner(System.in);

        System.out.println("请输入内容：");
         String s = scnner.nextLine();

         //equals：判断字符串是否相等
         if(s.equals("Hello")){
             System.out.println(s);
         }
             System.out.println("End");


         scnner.close();


    }
}
